#include "mesgqueue.hpp"
int main()
{
    string text;
    Server server;
    while(1)
    {
        //如果消息队列为空，那么就阻塞等待
        server.receive(msg_typeclient,text);
        if(text=="exit") break;
        cout<<"receive: "<<text<<endl;
    }
    return 0;
}